#include <stdio.h>

#define PI 3.14159265358979

int main()
{
    int T, t;
    scanf("%d", &T);
    for (t = 1; t <= T; t++)
    {
        double x, y;
        scanf("%lf %lf", &x, &y);
        printf("Property %d: This property will begin eroding in year %d.\n",
            t, (int)(0.5*PI*(x*x+y*y)/50.0) + 1);
    }
    printf("END OF OUTPUT.\n");
    return 0;
}